package com.fangxing.apps.example.redis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by fangxing on 17-6-19.
 */
@Controller
public class UserRedisController {
    @Autowired
    private UserRedisService userRedisService;

    @RequestMapping("/adduser")
    public String addUser(){
        userRedisService.addUser();
        return "success";
    }
}
